package com.andrew.pegSolitareEngine;


public class Hole {
	private Peg thisPeg;
	private int columnId;
	private int rowId;
	
	public Hole(int rowParam, int columnParam){
		rowId = rowParam;
		columnId = columnParam;
	}
	
	public String getId(){
		String thisPegId = "(" + rowId + "," + columnId + ")";
		return thisPegId;
	}
	
	public void setPeg(Peg pegParam){
		thisPeg = pegParam;
	}
	
	public Peg removePeg(){
		return thisPeg;
	}
	
	public boolean isFull(){
		boolean checkForPeg = false;
		if (thisPeg!=null){
			checkForPeg = true;
		}
		return checkForPeg;
	}
}
